<div class="sidebar_detail">
	<div class="tab-header">
		<div class="title">
			<i class="fa fa-home"></i>游客登记
		</div>
		<div class="tool">
			<button type="button" class="btn btn-default"
				ng-click="updateSupport.save()"
				ng-disabled="updateVisitorForm.$invalid">
				<i class="fa fa-outdent"></i>保存
			</button>
		</div>
	</div>
	<!-- Nav tabs -->
	<ul class="nav nav-tabs" role="tablist" style="clear: both">
		<li class="active"><a data-target="#addBaseInfo" role="tab"
			data-toggle="tab">基本信息</a></li>
	</ul>
	<!-- Tab panels -->
	<div class="tab-content">
		<!--此处存放各tab页div-->
		<div class="tab-pane active">
			<form id="updateVisitorForm" name="updateVisitorForm">
				<div class="row">
					<div class="col-md-6 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"> <span
								class="notNull">*</span>中文名:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="zhName" name="zhName" type="text"
									class="form-control" ng-model="updateSupport.entity.zhName"
									ng-maxlength="32" required> <span
									class="glyphicon glyphicon-ok form-control-feedback"
									ng-show="updateVisitorForm.zhName.$valid"></span> <span
									class="error_tips"
									ng-show="updateVisitorForm.zhName.$error.maxlength">最多不能超过32个字符！</span>
							</div>
						</div>
					</div>
					<div class="col-md-6 form-horizontal">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"> <span
								class="notNull">*</span>英文名:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="enName" name="enName" type="text"
									class="form-control" ng-model="updateSupport.entity.enName"
									ng-maxlength="32" required> <span
									class="glyphicon glyphicon-ok form-control-feedback"
									ng-show="updateVisitorForm.enName.$valid"></span> <span
									class="error_tips"
									ng-show="updateVisitorForm.enName.$error.maxlength">最多不能超过32个字符！</span>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"> <span
								class="notNull">*</span>代码:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="code" name="code" type="text" class="form-control"
									ng-model="updateSupport.entity.code" disabled>
							</div>
						</div>
					</div>
					<div class="col-md-6 form-horizontal">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"> <span
								class="notNull">*</span>性别:
							</label>
							<div class="col-md-8 col-sm-10">
								<!-- <input id="sex" name="sex" type="text" class="form-control" ng-model="updateSupport.entity.sex"> -->
								<label class="radio-inline" style="margin-left: -10px;">
									<input type="radio" name="sex_name" value="1"
									ng-model="updateSupport.entity.sex"
									ng-checked="updateSupport.entity.sex=='1'"> 男
								</label> <label class="radio-inline"> <input type="radio"
									name="sex_name" value="0" ng-model="updateSupport.entity.sex"
									ng-checked="updateSupport.entity.sex=='0'"> 女
								</label>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"> <span
								class="notNull">*</span>联系电话:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="phone" name="phone" type="text" class="form-control"
									ng-model="updateSupport.entity.phone" ng-pattern="updateSupport.validator.phone">
								<!-- <span class="glyphicon glyphicon-ok form-control-feedback"
									ng-show="updateVisitorForm.phone.$valid"></span> -->
								<span
									class="error_tips"
									ng-show="updateVisitorForm.phone.$error.pattern">{{ updateSupport.validator.phone_error }}</span>
							</div>
						</div>
					</div>
					<div class="col-md-6 form-horizontal">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"> <span
								class="notNull">*</span>年龄:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="age" name="age" type="number" min="0" class="form-control"
									ng-model="updateSupport.entity.age" required> <span
									class="glyphicon glyphicon-ok form-control-feedback"
									ng-show="updateVisitorForm.age.$valid"></span>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"> <span
								class="notNull">*</span>证件类型:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="certificatesName" name="certificatesName" type="text"
									class="form-control"
									ng-model="updateSupport.entity.certificatesName"> <input
									name="certificates" type="hidden" class="form-control"
									ng-model="updateSupport.entity.certificates" required>
								<span class="glyphicon glyphicon-ok form-control-feedback"
									ng-show="updateVisitorForm.certificates.$valid"></span>
							</div>
						</div>
					</div>
					<div class="col-md-6 form-horizontal">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"> <span
								class="notNull">*</span>证件号码:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="certificatesNumber" name="certificatesNumber"
									type="text" class="form-control"
									ng-model="updateSupport.entity.certificatesNumber"
									ng-maxlength="32" required> <span
									class="glyphicon glyphicon-ok form-control-feedback"
									ng-show="updateVisitorForm.certificatesNumber.$valid"></span> <span
									class="error_tips"
									ng-show="updateVisitorForm.certificatesNumber.$error.maxlength">最多不能超过32个字符！</span>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"> <span
								class="notNull">*</span>出生日期:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="birthDate" name="birthDate" type="text"
									class="form-control" ng-model="updateSupport.entity.birthDate"
									required> <span
									class="glyphicon glyphicon-ok form-control-feedback"
									ng-show="updateVisitorForm.birthDate.$valid"></span>
							</div>
						</div>
					</div>
					<div class="col-md-6 form-horizontal">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"> <span
								class="notNull">*</span>类型:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="typeName" name="typeName" type="text" class="form-control">
								<input name="type" type="hidden" class="form-control"
									ng-model="updateSupport.entity.type" required>
								<span class="glyphicon glyphicon-ok form-control-feedback"
									ng-show="updateVisitorForm.type.$valid"></span>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-sm-2 control-label"> <span
								class="notNull">*</span>描述:
							</label>
							<div class="col-sm-10">
								<textarea id="description" name="description"
									class="form-control" rows="10"
									ng-model="updateSupport.entity.description" ng-maxlength="300"></textarea>
								<span class="error_tips"
									ng-show="updateVisitorForm.description.$error.maxlength">最多不能超过300个字符！</span>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-sm-2 control-label">证件照:</label>
							<div class="col-sm-10" id="license"></div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12 form-horizontal">
						<div class="form-group">
							<label class="col-sm-2 control-label"></label>
							<div class="col-sm-10">
								<ul id="dowebok">
									<li ng-repeat="item in updateSupport.bind.images" style="list-style-type: decimal;margin: 8px 0;">
										<img data-original="{{ item.key }}" src="{{ item.hasOwnProperty('src') ? item.src : updateSupport.bind.path + item.path }}" style="width: 90%;">
										<a ng-if="!item.hasOwnProperty('src')" href="javascript:void(0);" ng-click="updateSupport.removeImg(item.resouceId)" style="float: right; "><i class="fa fa-times"></i></a>
									</li>
								</ul>
								<input name="isOk" type="hidden" class="form-control" ng-model="updateSupport.bind.isOk" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="updateVisitorForm.isOk.$valid"></span>
							</div>
						</div>
					</div>
				</div>
				<!-- <div class="row">
					<div class="col-md-12 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-sm-2 control-label"></label>
							<div class="col-sm-10" id="carLicense">
								<ul id="dowebok">
									<li ng-repeat="item in updateSupport.bind.images"><img
										data-original="{{ item.path }}" src="{{ item.path }}"></li>
								</ul>
								<input name="isOk" type="hidden" class="form-control"
									ng-model="updateSupport.bind.isOk" required> <span
									class="glyphicon glyphicon-ok form-control-feedback"
									ng-show="updateVisitorForm.isOk.$dirty && updateVisitorForm.isOk.$valid"></span>
							</div>
						</div>
					</div>
				</div> -->
			</form>
		</div>
	</div>
</div>